package com.m3958.firstgwt.server.types;

import java.util.List;

import com.m3958.firstgwt.server.model.BaseTreeModel;


public interface TreeModel<T extends BaseTreeModel<T>> {
	public TreeModel<T> getParent();
	
	public void setParent(T parent);
	
	public List<T> getChildren();
	
	public void setChildren(List<T> children);
	
	public boolean addChildren(TreeModel<T> bm);
	
	public boolean removeChildren(TreeModel<T> bm);
	
	public int getParentId();
	
	public boolean isFolder();
	
	public void setChildrenNum(int childrenNum);
	
	public int getId();
	
}
